/*!
 * jquery-confirm v1.7.9 (http://craftpip.github.io/jquery-confirm/)
 * Author: boniface pereira
 * Website: www.craftpip.com
 * Contact: hey@craftpip.com
 *
 * Copyright 2013-2015 jquery-confirm
 * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
 */
body.jconfirm-noscroll {
  /*overflow: hidden !important;*/
}
@-webkit-keyframes jconfirm-rotate {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes jconfirm-rotate {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.jconfirm {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999999;
  font-family: inherit;
  overflow: hidden;
}
.jconfirm .jconfirm-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  -webkit-transition: all .4s;
          transition: all .4s;
}
.jconfirm .jconfirm-bg.seen {
  opacity: 1;
}
.jconfirm .jconfirm-scrollpane {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;

  .jconfirm-container {
    position: fixed;
    left: 50%;
    width: 500px;
    margin-left: -250px;
    z-index: 2000;
  }
}
.jconfirm .jconfirm-box {
  background: white;
  border-radius: 4px;
  position: relative;
}
.jconfirm .jconfirm-box div.closeIcon {
  height: 20px;
  width: 20px;
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  opacity: .6;
  text-align: center;
  display: none;
}
.jconfirm .jconfirm-box div.closeIcon:hover {
  opacity: 1;
}
.jconfirm .jconfirm-box div.title {
  font-size: 14px;
  font-weight: bold;
  font-family: inherit;
  padding: 10px 15px 5px;
}
.jconfirm .jconfirm-box div.content {
  font-size: 16px;
  padding: 10px 15px 10px;
}
.jconfirm .jconfirm-box div.content:empty {
  height: 40px;
  position: relative;
  opacity: 0.6;
}
.jconfirm .jconfirm-box div.content:empty:before {
  content: '';
  height: 20px;
  width: 20px;
  border: solid 2px #aaa;
  position: absolute;
  left: 50%;
  margin-left: -45px;
  border-radius: 20%;
  -webkit-animation: jconfirm-rotate 1s infinite;
          animation: jconfirm-rotate 1s infinite;
}
.jconfirm .jconfirm-box div.content:empty:after {
  content: 'loading..';
  position: absolute;
  left: 50%;
  margin-left: -15px;
}
.jconfirm .jconfirm-box .buttons {
  padding: 10px 15px;
  .btn-default {
    // width: 90px;
    // height: 35px;
    // line-height: 32px;
    // font-size: 14px;
    // text-align: center;
    // cursor: pointer;
    // border-radius: 3px;
    // font-weight: 500;
    &.btn-submit {
      color: #fff;
      background: #2576bd;
      border: 1px solid #2576bd;
      box-shadow: 0 2px 3px #b6cfe5;
      &:hover {
        background: #1766ac;
      }
    }
    &.btn-cancel {
      color: #78889f;
      background: #fff;
      border: 1px solid #c5d0e0;
      box-shadow: 0 2px 3px #d9e1e5;
      margin-left: 10px;
      &:hover {
        background: #78889f;
        border: 1px solid #78889f;
        color: #fff;
      }
    }
  }
}
.jconfirm .jconfirm-box .buttons button + button {
  margin-left: 5px;
}
.jconfirm .jquery-clear {
  clear: both;
}
.jconfirm.rtl {
  direction: rtl;
}
.jconfirm.rtl div.closeIcon {
  left: 12px;
  right: auto;
}

.jconfirm.white {
  .jconfirm-bg {
    background-color: rgba(0, 0, 0, 0.2);
  }
  .jconfirm-box {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    div.content{
      padding: 20px 15px;
      .simple_captcha {
        .pull-left {
          input[type=text] {
            height: 37px;
            border: 1px solid #e2e2e2;
            line-height: 21px;
            padding: 5px 0 5px 10px;
          }
          .simple_captcha_image {
            img {
              margin-top: 5px;
              float: left;
            }
            .simple_captcha_refresh_button {
              height: 30px;
              line-height: 30px;
              float: left;
              margin-top: 5px;
            }
          }
        }
      }
    }
    .buttons {
      float: right;
      button {
        &.btn-default {
          width: 120px;
        }
      }
    }
  }
}

.jconfirm.error {
  .jconfirm-bg {
    background-color: rgba(0, 0, 0, 0.2);
  }
  .jconfirm-box {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: #333;
    background-color: $dialog-white;
    border-radius: 5px;
    .title {
      color: $dialog-white;
      background-color: $dialog-message-danger;

      i {
        color: #fff;
      }
    }
    .buttons {
      float: right;
      button {
        border: none;
        background-image: none;
        text-transform: uppercase;
        font-size: 14px;
        font-weight: bold;
        text-shadow: none;
        -webkit-transition: background .1s;
        transition: background .1s;
        &.btn-default {
          color: $dialog-message-danger;
          background-color: #fff;
          border: 1px solid #e2e2e2;
          box-shadow: none;
          &:hover {
            border: none;
            background-color: $dialog-message-danger;
            color: #fff;
          }
        }
      }
    }
  }

}


.jconfirm.success {
  .jconfirm-bg {
    background-color: rgba(0, 0, 0, 0.5);
  }
  .jconfirm-box {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    border-radius: 5px;
    .buttons {
      float: right;
    }
    .title {
      color: #fff;
      background-color: $dialog-message-success;
    }
    .buttons button {
      border: none;
      background-image: none;
      text-transform: uppercase;
      font-size: 14px;
      font-weight: bold;
      text-shadow: none;
      -webkit-transition: background .1s;
      transition: background .1s;
      &.btn-default {
        color: $dialog-message-success;
        background-color: #fff;
        border: 1px solid #e2e2e2;
        box-shadow: none;
        &:hover {
          // border: none;
          background-color: $dialog-message-success;
          color: #fff;
        }
      }
    }
  }
}

.jconfirm.info {
  .jconfirm-bg {
    background-color: rgba(0, 0, 0, 0.5);
  }
  .jconfirm-box {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    background-color: #fff;
    .buttons {
      float: right;
    }
    .title {
      background-color: $dialog-message-info;
      color: #fff;

      i {
        color: #fff;
      }
    }
  }
}

.jconfirm .jconfirm-box.hilight {
  box-shadow: 0 0 20px red;
}
/*Transition rules*/
.jconfirm {
  -webkit-perspective: 400px;
          perspective: 400px;
}
.jconfirm .jconfirm-box {
  opacity: 1;
  -webkit-transition-property: -webkit-transform, opacity, box-shadow;
          transition-property: transform, opacity, box-shadow;
}
.jconfirm .jconfirm-box.anim-top,
.jconfirm .jconfirm-box.anim-left,
.jconfirm .jconfirm-box.anim-right,
.jconfirm .jconfirm-box.anim-bottom,
.jconfirm .jconfirm-box.anim-opacity,
.jconfirm .jconfirm-box.anim-zoom,
.jconfirm .jconfirm-box.anim-scale,
.jconfirm .jconfirm-box.anim-none,
.jconfirm .jconfirm-box.anim-rotate,
.jconfirm .jconfirm-box.anim-rotatex,
.jconfirm .jconfirm-box.anim-rotatey,
.jconfirm .jconfirm-box.anim-scaley,
.jconfirm .jconfirm-box.anim-scalex {
  opacity: 0;
}
.jconfirm .jconfirm-box.anim-rotate {
  -webkit-transform: rotate(90deg);
      -ms-transform: rotate(90deg);
          transform: rotate(90deg);
}
.jconfirm .jconfirm-box.anim-rotatex {
  -webkit-transform: rotateX(90deg);
          transform: rotateX(90deg);
  -webkit-transform-origin: center;
      -ms-transform-origin: center;
          transform-origin: center;
}
.jconfirm .jconfirm-box.anim-rotatey {
  -webkit-transform: rotatey(90deg);
      -ms-transform: rotatey(90deg);
          transform: rotatey(90deg);
  -webkit-transform-origin: center;
      -ms-transform-origin: center;
          transform-origin: center;
}
.jconfirm .jconfirm-box.anim-scaley {
  -webkit-transform: scaley(1.5);
      -ms-transform: scaley(1.5);
          transform: scaley(1.5);
  -webkit-transform-origin: center;
      -ms-transform-origin: center;
          transform-origin: center;
}
.jconfirm .jconfirm-box.anim-scalex {
  -webkit-transform: scalex(1.5);
      -ms-transform: scalex(1.5);
          transform: scalex(1.5);
  -webkit-transform-origin: center;
      -ms-transform-origin: center;
          transform-origin: center;
}
.jconfirm .jconfirm-box.anim-top {
  -webkit-transform: translate(0px, -100px);
      -ms-transform: translate(0px, -100px);
          transform: translate(0px, -100px);
}
.jconfirm .jconfirm-box.anim-left {
  -webkit-transform: translate(-100px, 0px);
      -ms-transform: translate(-100px, 0px);
          transform: translate(-100px, 0px);
}
.jconfirm .jconfirm-box.anim-right {
  -webkit-transform: translate(100px, 0px);
      -ms-transform: translate(100px, 0px);
          transform: translate(100px, 0px);
}
.jconfirm .jconfirm-box.anim-bottom {
  -webkit-transform: translate(0px, 100px);
      -ms-transform: translate(0px, 100px);
          transform: translate(0px, 100px);
}
.jconfirm .jconfirm-box.anim-zoom {
  -webkit-transform: scale(1.2);
      -ms-transform: scale(1.2);
          transform: scale(1.2);
}
.jconfirm .jconfirm-box.anim-scale {
  -webkit-transform: scale(0.8);
      -ms-transform: scale(0.8);
          transform: scale(0.8);
}
.jconfirm .jconfirm-box.anim-none {
  display: none;
}

@media (max-width: 750px) {
  .jconfirm .jconfirm-scrollpane .jconfirm-container {
    left: 0;
    margin-left: 0;
    padding: 20px 25px;
    width: 100%;
    .simple_captcha {
      .pull-left {
        width: 50%;
        input[type=text] {
          width: 100%;
        }
      }
    }
  }
}

.jconfirm {
  .jconfirm-container {
    &.tucao {
      .buttons {
        text-align: center;
        float: none;
        button.btn-default {
          box-shadow: none;
        }
      }
    }
  }
}


.jconfirm{
  .jconfirm-box{
    border-radius: 0 !important;
    .title, .content{
      text-align: center;
    }
    .title{
      padding: 10px 15px !important;
    }

    .buttons{
      float: inherit;
      text-align: center;
      width: 100%;

      .btn-default{
        padding: 5px 20px;
      }
    }
  }

  &.success{
    .jconfirm-box{
      .title{
        background-color: #37CA73;
      }

      .btn-default{
        color: #37CA73 !important;
        background-color: #fff !important;
        padding: 5px 20px !important;
        &:hover{
          color: #fff !important;
          background-color: #37CA73 !important;
          padding: 5px 20px !important;
        }
      }
    }
  }


  &.error{
    .jconfirm-box{
      .title{
        background-color: $dialog-message-danger;
      }

      .btn-default{
        color: $dialog-message-danger !important;
        background-color: #fff !important;
        padding: 5px 20px !important;
        &:hover{
          color: #fff !important;
          background-color: $dialog-message-danger !important;
          padding: 5px 20px !important;
        }
      }
    }
  }
}
